/**
 * “运营管理”相关接口
 */
import Http from 'utils/request'
const context = process.env.VUE_APP_CONSOLE_PATH

/**
 * 一口价列表
 */
export function marketQueryFixedPriceApi(param) {
  return Http.fetch(context + '/market/queryFixedPrice', param, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 更新一口价
 */
export function marketUpdateFixedPriceApi(param) {
  return Http.fetch(context + '/market/updateFixedPrice', param, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 按重计价列表
 */
export function marketQueryWeightPriceApi(param) {
  return Http.fetch(context + '/market/queryWeightPrice', param, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 按重计价更新
 */
export function marketUpdateWeightPriceApi(param) {
  return Http.fetch(context + '/market/updateWeightPrice', param, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 分账列表
 */
export function marketQueryMerchatParApi(param) {
  return Http.fetch(context + '/market/queryMerchatPar', param, {
    method: 'post',
    hasErrMsg: true
  })
}

/**
 * 新增或修改分账信息
 */
export function marketSaveOrupdateMerchatParApi(param) {
  return Http.fetch(context + '/market/saveOrupdateMerchatPar', param, {
    method: 'post',
    hasErrMsg: true
  })
}
